package org.example.consume.service;


import org.springframework.stereotype.Service;
import org.springframework.cloud.client.circuitbreaker.ReactiveCircuitBreaker;
import org.springframework.web.client.RestTemplate;

@Service
public class BookStoreService {
    private final RestTemplate rest;
    public BookStoreService(RestTemplate rest) {
        this.rest = rest;
    }
    public String readingList() {
        return rest.getForObject("http://localhost:7500/recommended", String.class);
    }

}
